# _*_ coding:utf-8 _*_

"""
爬虫中间件
用于处理请求和响应
"""


class SpiderMiddlewares(object):
    def process_request(self, request):
        print("SpiderMiddlewares:process_request")
        return request

    def process_response(self, response):
        print("SpiderMiddlewares:process_response")
        return response